package com.example.javapracticaltraining.service;

import com.example.javapracticaltraining.entity.R;
import com.example.javapracticaltraining.entity.dto.PasswordChangeDTO;
import com.example.javapracticaltraining.entity.pojo.Users;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author night
* @description 针对表【users】的数据库操作Service
* @createDate 2025-07-02 15:42:45
*/
public interface UsersService extends IService<Users> {
    /**
     * 修改用户密码
     * @param passwordChangeDTO 包含用户ID、旧密码和新密码的DTO
     * @return 操作结果
     */
    R<String> changePassword(PasswordChangeDTO passwordChangeDTO);
}
